import {request} from "./index";

export function checkUser(data) {
    return request({
        url:'/admin/login',
        method:'post',
        type:'json',
        data
    })
}

export function AllUser(data) {
    return request({
        url:"/admin/getalluser",
        method:'post',
        type: 'json',
        data
    })
}

export function AddUser(data) {
    return request({
        url:"/admin/adduser",
        method:'post',
        type: 'json',
        data
    })
}

export function ChangeUserPass(data) {
    return request({
        url:"/admin/upuserpass",
        method:'post',
        type: 'json',
        data
    })
}

export function DelUser(data) {
    return request({
        url:"/admin/deluser",
        method:'post',
        type: 'json',
        data
    })
}

export function ChangeAdminPass(data) {
    return request({
        url:"/admin/changepass",
        method:'post',
        type: 'json',
        data
    })
}

export function ResetAdmin(data) {
    return request({
        url:"/admin/resetadmin",
        method:"post",
        type: 'json',
        data
    })
}

export function LookLog(data) {
    return request({
        url:"/admin/viewlog",
        method:"post",
        type: 'json',
        data
    })
}
